package com.wswy.wyjk.model.vo

import com.wswy.wyjk.model.PracticeData
import com.wswy.wyjk.model.RecordData

class PracticeModel(
    val practiceData: PracticeData,
    var recordData: RecordData?=null
) {

    fun hasAnswer():Boolean{

        return recordData?.hasAnswer()?:false
    }

    fun isRight():Boolean{
        return recordData?.getTypeAnswer() == practiceData.answer
    }


    override fun toString(): String {
        return "PracticeModel(practiceData=$practiceData, recordData=$recordData)"
    }
}